'use strict';

const Controller = require('egg').Controller;
const utility = require('utility')
class LoginController extends Controller {
  async login() {
    const req = this.ctx.request.body
    // const password = utility.md5(req.password)
    // const params = ['admin','admin']
    const result = await this.service.login.login(req.username, req.password)//req.username, password
  }
  async info() {
    console.log('info中');
    const result = await this.service.login.info()
  }
  async nav() {
    console.log('nav中');
    const result = await this.service.login.nav()
  }
}

module.exports = LoginController;
